<?php #coding: utf-8 æ ø å ?>

<?php



	if($type == "player_character"){ 
		$type = "individ";
	}
    $deltager = $this->session->userdata('deltager');

//    Checker om elementet er læst og godkendt af gamemasteren.
	if(isset($gm)) {
		$tjek = 0;
		foreach($gm as $g){ 
		   if($g['id'] == $deltager['userid'] and $ingame['ingame_id'] == 0) {  
		       $tjek = 1;
		        
		   }
		}           
	   

		if($stamdata['approved'] != "1") {
		    if($tjek != 1) {
		            echo "<p class='rubrik' style='float:right;'>Ikke læst af gamemasteren</p>";
		    }
		    else {
		            echo "<p style='float:right;'>";
		                echo anchor("core/rediger/godkend_element/".$id,"Godkend siden","class='rubrik' style='float:right;'");
		            echo "</p>";
		    }
		}
		elseif($stamdata['approved'] == "1"){
		    echo "<p class='rubrik' style='float:right;'>Læst og godkendt af gamemasteren</p>";
		}    
	}
	else{
		echo "<p class='rubrik' style='float:right;'>Ingen gamemaster fundet</p>";
	}

	$this->load->view("basisinformation/".$type);



?>





	

